<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * pelamarkonsepdiri.php
 * @author ranuandra
 *
 * 7 Jun 2012 14:13:41
 *
 * 
 */

class Model_Pelamarkonsepdiri extends ORM
{
	protected $_belons_to = array(
	        'mstpelamar' 		=> array('model'	=> 'mstpelamar'),
			'mstkonsepdiri'		=> array('model'	=> 'mstkonsepdiri'),
	);
	
	private $_field = array('mstkonsepdiri_id', 'jawab', 'penjelasan');
	private $_form = array(
							'mstkonsepdiri_id' 			=> '', 
							'jawab'						=> '',
							'penjelasan'				=> '',
	                      );
	
	public $rules = array(
					'mstkondepdiri_id' 	 => array(
												array('min_length', array(':value', 0)),
											),
					'jawab' 			 => array(
												array('min_length', array(':value', 0)),
											),
					'penjelasan' 		 => array(
												array('min_length', array(':value', 0)),
											),
	);
	
	public function getField()
	{
		return $this->_field;
	}
	
	public function getForm()
	{
		return $this->_form;
		
	}
	
	public function create_data($values)
	{
	    return $this->values($values, $this->_field)->create();
	}
}